Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Only create MapperService in SyntheticSourceIndexSettingsProvider when required (#116075) #116233

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

martijnvg
Copy link
Member

Backports the following commits to 8.x:

…n required (elastic#116075)

In case the index.mapping.source.mode is specified, there is no need to create a mapper service to determine whether synthetic source is used.

In case of logsdb/tsdb there is also no reason to create a mapper service. If _source.mode attribute is specified, then it doesn't really matter whether what its value is for the SyntheticSourceIndexSettingsProvider. If it is synthetic, then that is the same as the index mode's default source mode. If it is stored, we just will add set index.mapping.source.mode to stored, which has no effect. And disabled source mode isn't allowed in the case of logsdb and tsdb.

Closes elastic#116070
@martijnvg martijnvg added :StorageEngine/Logs You know, for Logs >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:StorageEngine labels Nov 5, 2024
@elasticsearchmachine elasticsearchmachine merged commit 2403413 into elastic:8.x Nov 5, 2024
15 checks passed
@martijnvg martijnvg deleted the backport/8.x/pr-116075 branch November 5, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >non-issue :StorageEngine/Logs You know, for Logs Team:StorageEngine v8.17.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants